package com.easy.frame.servers.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.easy.frame.base.api.pojo.BasePO;
import com.easy.frame.base.basic.pojo.DictContentList;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 系统字典表
 *
 * @author zzf
 * @date 2020/7/10 11:56
 */

@Getter
@Setter
@TableName(value = "sys_dict", autoResultMap = true)
@ApiModel("系统字典实体类")
public class SysDict extends BasePO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("编码")
    private String code;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("名称-繁体")
    private String ftName;

    @ApiModelProperty("名称-英语")
    private String enName;

    @ApiModelProperty("是否允许自定义 0否 1是")
    private Integer enableCustomized;

    @TableField(typeHandler = JacksonTypeHandler.class)
    @ApiModelProperty("内容列表")
    private DictContentList content;


}
